import request from '@/utils/request'

export const getDoctorPage = async (data) => {
  return await request.get('/selectUser/page', {params: data})
}

// 用户登录
export const login = async (data) => {
  return await request.post('/login', data)
}

// 用户注册
export const register = async (data) => {
  console.log(data)
  return await request.post('/insetUser', data)
}

// 修改用户信息
export const updateUserFetch = async (data) => {
  return await request.put('/updateUser', data)
}

// 用户列表
export const getUserListPage = async (data) => {
  return await request.get('/selectUser/page', {params: data})
}
